
package common.exception;

public class ProjectException extends RuntimeException {

    private static final long serialVersionUID      = -445243522945961957L;

    public static final int   Flag_Default	  = 0;
    public static final int   Flag_Save_Error       = -10;
    public static final int   Flag_Saves_Error      = -15;
    public static final int   Flag_Update_Error     = -20;
    public static final int   Flag_Updates_Error    = -25;
    public static final int   Flag_Delete_Error     = -30;
    public static final int   Flag_Deletes_Error    = -35;
    public static final int   Flag_Get_Error	= -100;
    public static final int   Flag_Query_Error      = -200;
    public static final int   Flag_QueryCount_Error = -300;
    public static final int   Flag_QueryAvg_Error   = -300;
    public static final int   Flag_QuerySum_Error   = -300;

    private int	       flag		  = Flag_Default;

    public ProjectException(int flag) {

	this.flag = flag;
    }

    public ProjectException(String message, Throwable cause, int flag) {

	super(message, cause);
	this.flag = flag;
    }

    public int getFlag() {

	return this.flag;
    }

    public void setFlag(int flag) {

	this.flag = flag;
    }

}
